package com.zhouheng.springbootdesignpattern.builderpattern;

/**
 * 导演类/指导类
 */
public class Director {

    Builder mBuilser;

    public Director(Builder builer) {
        this.mBuilser = builer;
    }

    /**
     * 按顺序构建所有的属性项
     */
    public void construct(String board, String display) {
        mBuilser.buildDisplay(display);
        mBuilser.buildBoard(board);
        mBuilser.buildOs();
    }

}
